package com.siccr.model;

public class Engine extends Machine implements Tank {
	
	private byte state;
		
	public Engine(){
		
	}	
	public Engine(byte state) {
		super();
		this.state = state;
	}
	public boolean startEngine() {
		if(state==3){
			
		}
		return true;
	}
	public boolean stop(){
		return true;
	}
	public char[] sec = {'y','o','z','i'};
	@Override
	public char charAt(int index) {		
		return sec[index];
	}
	@Override
	public int length() {
		return sec.length;
	}
	@Override
	public CharSequence subSequence(int start, int end) {
		char[] sec = new char[end-start];		
		while(start++<sec.length){
			
		}
		return this;
	}
	@Override
	public int code() {
		
		return 450;
	}
	@Override
	public void start() {
		
		System.out.println("engine started...");
		
	}
	@Override
	public int getHeight() {
		// TODO Auto-generated method stub
		return 0;
	}	
	protected boolean ready() {
		return true;
	}	
	@Override
	public	void trash() {
		System.out.println("recycled complete. at Engine (overrides)");
	}
	// HIDES
	public static void check(){
		System.out.println("class Method called from ENGINE (hides)");
	}
}
